# 任意数量关键字实参 **others
def make_car(menufacturer, model, **others):
    car = {}
    car['menufacturer'] = menufacturer
    car['model'] = model
    if others:
        for key, value in others.items():
            car[key] = value
    print('car', car)


class Car():

    def __init__(self:dict, make:str, model:str, year:int) -> None:
        self.make = make
        self.model = model
        self.year = year
        self.odometer_reading = 0

    def get_descriptive_name(self):
        long_name =  str(self.year) + ' ' + self.make + ' ' + self.model
        return long_name.title()

    def read_odometer(self):
        print("This car has " + str(self.odometer_reading) + " miles on it.")

    def update_odometer(self, mileage:int):
        if mileage >= self.odometer_reading:
            self.odometer_reading = mileage
        else:
            print("You can't roll back an odometer!")

    def increment_odometer(self, miles:int):
        self.odometer_reading += miles

    def fill_gas_tank():
        print("This fill_gas_tank!")


